package com.itheima.mapper;

import com.itheima.pojo.Area;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 定义和城市相关的CRUD方法并配置SQL语句
 */
@Mapper
public interface AreaMapper {

    /**
     * 查询所有城市
     * @return
     */
    @Select("select * from db_bank.area")
    List<Area> findAll();

}
